﻿using System;
using System.Collections.Generic;
using System.Text;
using UtilZ.Dotnet.Ex.Communication.Net.Base;
using UtilZ.Dotnet.Ex.Communication.Net.DataTransfer.Base;

namespace UtilZ.Dotnet.Ex.Communication.Net.DataTransfer.Udp
{
    /// <summary>
    /// Udp数据传输选项
    /// </summary>
    public class UdpTransferDataOptions : NetUdpSendOptions, ITransferDataOptions
    {
        /// <summary>
        /// 发送优先级
        /// </summary>
        public byte PriorityLevel { get; set; } = 0;

        /// <summary>
        /// 发送数据超时毫秒数
        /// </summary>
        public int MillisecondsTimeout { get; set; } = 5000;

        /// <summary>
        /// 超时次数门限,当达到此值时,输出发送失败,小于等于0表示无限次
        /// </summary>
        public int TimeoutLimit { get; set; } = 3;


        /// <summary>
        /// 构造函数
        /// </summary>
        public UdpTransferDataOptions()
            : base()
        {

        }

    }

}
